<template>
	<view class="p20r f26r hPer100 boSiBorBox">
		<view class="backColWhite bSha0010u0rgb00001 borRad10r p20r mb20r"
			v-for="(item, index) in partnerData" :key="index"
		>
			<view class="disFlex aliItCenter">
				<view class="w120r">
					<image :src="item.avatar_url ?
						imgNetUrl + item.avatar_url
						:
						baseUrl + 'iconHeadPortrait.png'"
						class="borRad50P w100r h100r" mode="aspectFit"
					></image>
				</view>
				<view class="flex1">
					{{item.nickname}}
				</view>
			</view>
			<view class="disFlex mt20r">
				<view class="flex1">
					<text class="col999">
						上级：
					</text>
					{{item.inviter}}
				</view>
				<view class="flex1 teAliRight">
					<text class="col999">
						上上级：
					</text>
					{{item.inviter2}}
				</view>
			</view>
			<view class="disFlex mt20r">
				<view class="w210r">
					<text class="col999">
						直接/间接：
					</text>
					{{
						item.inviter_type == 1 ? '直接' :
						item.inviter_type == 2 ? '间接' : item.inviter_type
					}}
				</view>
				<view class="flex1 teAliRight">
					<text class="col999">
						注册时间：
					</text>
					{{item.date}}
				</view>
			</view>
		</view>
		<view class="lh100r teAliCenter col999" v-if="partnerMore == true && partnerData.length">
			已加载全部
		</view>
		<view class="col999 poAbs top50P left50P trTrn50Pn50P" v-if="partnerData.length == 0">
			暂无邀请
		</view>
	</view>
</template>
<script>
import { imgNetUrl, baseUrl } from '@/utils/request.js'
export default {
	props: {
		partnerData: { type: Array, default: [] },
		partnerMore: { type: Boolean, default: false }
	},
	data() {
		return {
			imgNetUrl, baseUrl
		}
	},
	methods: {
		
	}
}
</script>
<style>
</style>